package prototype.revision;

import android.util.Log;

public class ColorManager {
	private static final String TAG = "Color Manager";
	private FileOperations fo = new FileOperations();
	
	public ColorManager (){
		
	}
	public boolean checkIfInWhiteList(String packageName){
		if (fo.SearchFile(packageName, fo.getWhiteList(), true)){
			Log.i(TAG, "You did find " + packageName + " in "
					+ fo.getWhiteList());
			return true;
		}
		else {
			Log.i(TAG, "You are checking " + packageName + " in "
					+ fo.getBlackList());
			return checkIfInBlackList(packageName);
		}
	}
	public boolean checkIfInBlackList(String packageName) {
		if (fo.SearchFile(packageName,fo.getBlackList(), true)){
			Log.i(TAG, "You did find " + packageName + " in "
					+ fo.getBlackList());
			return true;
		}
		else {
			Log.i(TAG, "You did not find " + packageName + " in "
					+ "either file");
			return false;
		}
	}

}
